#define _CRT_SECURE_NO_WARNINGS 1

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main()
{
    ll t = 1, h = 233333, w = 343720;
    int dx = 15, dy = 17;
    while (1)
    {
        if (t * dx % w == 0 && t * dy % h == 0)
        {
            break;
        }
        ++t;
    }
    printf("%.2lf", 2 * t * sqrt(dx * dx + dy * dy));
    return 0;
}